package com.tbit.uqbike.webmanager.dao.stat;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.config.datasource.DataSource;
import com.tbit.manager.api.dto.UserStatParam;
import com.tbit.manager.api.vo.LineChartData;
import com.tbit.uqbike.object.pojo.MoneyData;
import com.tbit.uqbike.object.pojo.NewUserDaySta;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 新增用户数预统计
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2024-7-16
 */
@DS(DataSource.STAT)
public interface NewUserDayStaDao extends BaseMapper<NewUserDaySta> {
    /**
     * 新增用户数
     * @param map map
     * @return lisy
     */
    List<MoneyData> getByAccountId(Map<String, Object> map);

    /**
     * 新增用户数折线图
     * @param param
     * @return
     */
    List<LineChartData> newUserLineChart_Day(@Param("param") UserStatParam param);
}
